<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<meta charset="utf-8">
    <title>Task Edit</title>
<?php echo link_tag(my_url().'skin.css'); ?>
<?php echo link_tag(my_url().'tcal.css'); ?>
<script type="text/javascript" src="<?php echo my_url(); ?>tcal.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>js/timeFormat.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>js/1.js"></script>
<script type="text/javascript" src="../js/1.js"></script>
<script src="<?php echo my_url(); ?>js/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
 var BaseURL='<?php echo base_url(); ?>';

function redirect(location){
	
	window.location.href= location;
}

</script>

<link rel="stylesheet" href="../skin.css" type="text/css" media="screen" /><meta name="author" content="Jaypee Mahilum" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link href="skin.css" rel="stylesheet" type="text/css" />
</head>

<?php
//echo $_SESSION['administrator_log']."============";
if(!isset($_SESSION['administrator_log']))
{
		echo"Log in first to access this page<html><title>WARNING</title><body><br><a href='".base_url()."administrator' />click here to log in.</a></body></html>";
}
else
{
?>
<body >

	<div class="BodyCover">
	
 		<div class="ParentContent">
	        <?php require("at_menu.php"); ?>
			<div class="MenuTab">
    			<div class="MenuBelow"><img src="<?php echo my_url();?>images/below-menu.gif"></div>        
             </div>

			<br />
			<div class="module-index1">
		  		<div align="right"><a href="<?php echo base_url()?>admin/logout" style="color:#FF0000;">logout</a></div><br/>
  	                <p class=""><?php if (isset($recordflag)) {echo $recordflag;}?><p>
        
                 <form enctype='multipart/form-data' action="<?php echo base_url()?>task/p_edit_task/" method="post">
            	    <input type="hidden" name="hid_id" value="<?php echo $info->task_id ?>"  />
		                <label>Title:</label><br /> <textarea name="txttitle" value="" /><?php echo $info->title ?> </textarea> <br />
               			<label>Task From:</label> <?php  echo select_list("em_profile","em_n_name","em_n_name","employee_code","","name=txtt_from",$info->t_from); ?>  
                        <label>Task To:</label> <?php  echo select_list("em_profile","em_n_name","em_n_name","employee_code","","name=txtt_to",$info->t_to); ?>  <br />
                        <label>Date:</label> <input name="txtdate" size="15" class="tcal" value="<?php echo $info->date ?>" /> <label> Completed Date:</label> <input name="txtc_date" size="15" class="tcal" value="<?php echo $info->c_date ?>"/> <br />
                        <label>Description:</label><br /><textarea rows="14" cols="100" name="txtdescription" /><?php echo $info->description ?> </textarea><br />
                        <label>File</label> 
                        <input type='file' name='userfile'>        
               	<input type="submit"  value="Sumbit" name="cmdUpload">
                <input type="button"  value="Cancel" onclick="redirect(BaseURL+'task')" name="cmdcancel">
				</form>
     	        <br>
            <div class="BodyContent">
            </div>	
           
		</div><!---end of ParentContent ---->
        
		    <div class="Footer1">	
                <div class="Footer">Copyright &copy; 2011. All Rights Reserved <br><br>
                 <a href="http://webmartis.com"> <img src="http://localhost/wodocontacts/images/wmlink.png"></a>
                 
                </div>                
            </div> <!---end of Footer1 ---->        
    </div> <!---end of BodyCover ---->
</body>
<?php } ?>
</html>

